#pragma once
class CUIMemDC
{
public:
    CUIMemDC( HDC hDC, const RECT& rcClip );
    virtual ~CUIMemDC( void );

    HDC GetDC();

private:
    void DoPaint();
    HDC m_hSrcDC;
    RECT m_rcClip;

    HDC m_hMemDC;
    HBITMAP m_hMemBitmap;
    HBITMAP m_hOldBitmap;
};

